package com.example.campustalent.bean

import android.os.Parcelable
import com.litesuits.orm.db.annotation.Column
import com.litesuits.orm.db.annotation.PrimaryKey
import com.litesuits.orm.db.annotation.Table
import com.litesuits.orm.db.enums.AssignType
import kotlinx.android.parcel.Parcelize

/**
 *@author: wangtianxiong
 *@time: 2022/3/16
 *@describe:
 *
 */
@Parcelize
@Table("content")
class ContentBean : Parcelable{
    // 指定自增，每个对象需要有一个主键
    @PrimaryKey(AssignType.AUTO_INCREMENT)
    var id: Int = 0
    @Column("imageUrl")
    var imageUrl: String? = null
    @Column("content")
    var content: String? = null
    @Column("name")
    var name: String? = null
    override fun toString(): String {
        return "ContentBean(imageUrl=$imageUrl, content=$content, name=$name)"
    }


}